﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

public partial class admin_delete : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        DB DBAdmin = new DB();
        int id = Convert.ToInt32(Request.QueryString["id"].ToString());
        string[] delete = new string[2];
        delete[0] = "delete voteDetails where id='" + id + "'";
        delete[1] = "delete voteMaster where id='" + id + "'";
      
        if (DBAdmin.executeTransaction(delete))
        {
            Response.Write("删除成功");
        }
        Response.Redirect("mana.aspx");
    }
}
